RainbowSdk

interface RainbowSdk

Interface that serves as the entry point for developers to access the Rainbow SDK for Android. Provides access to the SDK singleton, allowing utilization of all available modules and functionalities.

Samples

import android.app.Application
import com.ale.rainbowsdk.RainbowSdk
fun main() { 
   //sampleStart 
   class InitializationSample: Application() {

    companion object {
        // It is not recommended to store sensitive data in this way.
        const val APP_ID = "YOUR_APP_ID"
        const val APP_SECRET = "YOUR_APP_SECRET"
    }

    override fun onCreate() {
        super.onCreate()
        RainbowSdk().initialize(this, APP_ID, APP_SECRET)

        // Once initialized, you can use the modules you want
        RainbowSdk().connection() // ...
    }

    fun unInitialize() {
        RainbowSdk().unInitialize()
    }
} 
   //sampleEnd
}

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun alerts(): Alerts

Provides access to the Alerts module APIs.

Link copied to clipboard
abstract fun bubbles(): Bubbles

Provides access to the Bubbles module APIs.

Link copied to clipboard
abstract fun callLogs(): CallLogs

Provides access to the CallLogs module APIs.

Link copied to clipboard
abstract fun channels(): Channels

Provides access to the Channels module APIs.

Link copied to clipboard
abstract fun conferences(): Conferences

Provides access to the Conferences module APIs.

Link copied to clipboard
abstract fun connection(): Connection

Provides access to the Connection module APIs.

Link copied to clipboard
abstract fun contacts(): Contacts

Provides access to the Contacts module APIs.

Link copied to clipboard
abstract fun echoTest(): EchoTest

Provides access to the EchoTest module APIs.

Link copied to clipboard
abstract fun favorites(): Favorites

Provides access to the Favorites module APIs.

Link copied to clipboard
abstract fun fileStorage(): FileStorage

Provides access to the FileStorage module APIs.

Link copied to clipboard
abstract fun groups(): Groups

Provides access to the Groups module APIs.

Link copied to clipboard
abstract fun im(): Im

Provides access to the Im (Instant Messaging) module APIs.

Link copied to clipboard
abstract fun initialize(applicationContext: Context, applicationId: String, applicationSecret: String)

Initialize the SDK with your application key and your application secret that you can get on the Rainbow hub.

Link copied to clipboard
abstract fun invitations(): Invitations

Provides access to the Invitations module APIs.

Link copied to clipboard
abstract fun note(): Note

Provides access to the Note module APIs.

Link copied to clipboard
abstract fun polls(): Polls

Provides access to the Polls module APIs.

Link copied to clipboard
abstract fun push(): Push

Provides access to the Push module APIs.

Link copied to clipboard

Provides access to the RoomContainer module APIs.

Link copied to clipboard
abstract fun routing(): Routing

Provides access to the Routing module APIs.

Link copied to clipboard
abstract fun telephony(): Telephony

Provides access to the Telephony module APIs.

Link copied to clipboard
abstract fun unInitialize()

Uninitializes the SDK, freeing resources and memory. Recommended for use when no further interaction with the SDK is required.

Link copied to clipboard
abstract fun user(): User

Provides access to the User module APIs.

Link copied to clipboard
abstract fun voicemails(): Voicemails

Provides access to the Voicemails module APIs.

Link copied to clipboard
abstract fun webinar(): Webinars

Provides access to the Webinars module APIs.

Link copied to clipboard
abstract fun webRTC(): WebRTC

Provides access to the WebRTC module APIs.